package com.hckj.jianzhijia.popupwindows;

import android.content.Context;
import android.view.View;

/**
 * Created by zhaoqilong on 2018/1/4.
 */

public class UserMapPopWin extends ListPopupWindow {

    private PushLongClickPopWin.PopWinInterface popWinInterface;
    private int listPosition;

    public UserMapPopWin(Context context, PushLongClickPopWin.PopWinInterface popWinInterface, View parentView, int listPosition, String[] data ) {
        super(context, parentView, null, data);
        this.popWinInterface = popWinInterface;
        this.listPosition = listPosition;
    }



    @Override
    public void getListItem(int position, String itemName) {
        if(position==0){
            popWinInterface.cancelPushApplication(listPosition);
        }
    }

    public interface PopWinInterface {
        public void junpToInfoActivity(int position);

    }
}
